#ifndef MY_ALLOCATOR_H
#define MY_ALLOCATOR_H

typedef struct Block{
	struct Block* next;
	char* memory;
	int size;
	int occupied_size;
} Block;

typedef struct MyAllocator {
	Block* head;
} MyAllocator;


MyAllocator* create_new_my_allocator(int blockSize);
void* my_allocate(MyAllocator* p, int n);
void clear_my_allocator(MyAllocator* p);





#endif
